from django.shortcuts import render
from django.http import JsonResponse
from django.views import View
from rest_framework.response import Response
from rest_framework.decorators import api_view
from rest_framework.views import APIView


# Create your views here.
def auth(request):
    return JsonResponse({'status': True, 'message': 'success'})


class UserView(View):

    def get(self, request):
        return JsonResponse({'status': True, 'message': 'GET'})

    def post(self, request):
        return JsonResponse({'status': True, 'message': 'POST'})

    def put(self, request):
        return JsonResponse({'status': True, 'message': 'PUT'})

    def delete(self, request):
        return JsonResponse({'status': True, 'message': 'DELETE'})

class InfoView(APIView):
    def get(self,request):
        return Response({'status': True, 'message': 'GET'})
